package pet;

import java.util.Random;

public class Main {
    public static void main(String[] args) {
        Random random = new Random();
        final int PET_COUNT = 1000;
        PetShop petShop = new PetShop(1000);

        // 随机生成1000个宠物信息
        for (int i = 0; i < PET_COUNT; i++) {
            String name = "Pet" + i; // 宠物名字
            int age = random.nextInt(15); // 年龄0到15
            int weight = random.nextInt(101); // 体重0到100
            int activity = random.nextInt(101); // 活跃度0到100
            int sensitivity = random.nextInt(101); // 灵敏度0到100
            Pet pet = new Pet(name, age, weight, activity, sensitivity);
            petShop.addPet(pet, i);
        }

        // 根据平均值降序排列宠物
        petShop.sortPetsByAverage();

        // 打印所有宠物信息
        petShop.printPetsInfo();
    }
}
